package com.flower.enjoyment.flower.mapper;

import com.flower.enjoyment.flower.entity.PresentDetail;
import com.flower.enjoyment.flower.entityDo.PresentDetailDo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

public interface PresentDetailMapper {
    int deleteByPrimaryKey(String id);

    int insert(PresentDetail record);

    PresentDetailDo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(PresentDetail record);

    /**
     * 分页查询赠送信息
     * @param userId
     * @return
     */
    Page<PresentDetailDo> selectPresentDetailByPage(@Param("userId") String userId);

    PresentDetailDo selectPresentDetailByCardId(@Param("cardId") String cardId);

}